﻿using ZilLion.Service.WeChatMall.Domain.Requests.CrmProxy;
using ZilLion.Service.WeChatMall.Domain.Responses.CrmProxy;

namespace ZilLion.Service.WeChatMall.Domain.Repositorys.Interface.CrmProxy
{
    public interface ICrmProxyRepository
    {
        AccWalletSingleResponse GetAccInfo(string passport, string getwey, PassportType passporttype);
        CrmTransactionFlowingResponse GetTransactionFlowing(string passport, string getwey, PassportType passporttype);

        AccCashPayResponse CashPay(CrmCashPayRequest request, string passport, string getway,
            PassportType passporttype);
    }

    public enum PassportType
    {
        /// <summary>
        ///     1-实体卡卡号
        /// </summary>
        OfflineMemberShipCardNo = 1,

        /// <summary>
        ///     2-微信appid+"|"+openid(仅线上系统使用)
        /// </summary>
        WeChatAppidAndOpenid = 2,

        /// <summary>
        ///     3-支付宝(仅线上系统使用)
        /// </summary>
        Alipay = 3,

        /// <summary>
        ///     4-手机号
        /// </summary>
        PhoneNo = 4,

        /// <summary>
        ///     5-账户id加密值（暂无）
        /// </summary>
        Custid = 5,

        /// <summary>
        ///     6-微信membershipno
        /// </summary>
        WeChatMemberShipNo = 6
    }
}